#ifndef GROUPJOIN_H
#define GROUPJOIN_H

#include "uidesign.h"
#include <QMainWindow>
#include <QTcpSocket>
#include <QMainWindow>
#include <QDebug>
#include <QDialog>
#include <QTcpSocket>
#include <QMessageBox>
#include <QListWidget>
#include<QListWidgetItem>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonParseError>
#include <QJsonValue>
#include <QJsonValuePtr>
#include <QJsonValueRef>
#include <QJsonValueRefPtr>
namespace Ui {
class groupJoin;
}

class groupJoin : public QMainWindow
{
    Q_OBJECT

public:
    explicit groupJoin(QWidget *parent = 0);
    explicit groupJoin(QTcpSocket * s, QString Id, QWidget *parent = 0);
    ~groupJoin();

private slots:
    void on_buttonSubmit_clicked();
    void recv();
    void on_buttonCancel_clicked();

private:
    Ui::groupJoin *ui;
    QTcpSocket* sock;
    QString gID;
    QString ID;
    QString gName;
signals:
    void joinGroupClose(QString, QString);
};

#endif // GROUPJOIN_H
